<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="renderer" content="webkit" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <title>查看申请</title>
    <link rel="stylesheet" href="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/_build/p/weipai/weipai_zc.css">
    <script src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/_build/c/index.js"></script>
    <script src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/_build/c/jquery.min.js"></script>
</head>
<body>
<menu class="zh-menu">
    <ul>
        <li class="zhuan-currents js-guanli">
            <a href="javascript:0"><span>专场管理</span></a>
            <ul class="list" style="display:none;">
                <li><a href="index.php?act=renzheng&op=zhuanchang&curpage=1">专场申请</a></li>
                <li><a href="index.php?act=renzheng&op=zhuanchang_zt&curpage=1">查看申请</a></li>
                <li><a href="index.php?act=renzheng&op=zhuanchang_jl&curpage=1">参加记录</a></li>
            </ul>
        </li>
        <li class="js-guanli">
            <a href="javascript:0">拍品管理</a>
            <ul class="list" style="display:none;">
                <li><a href="index.php?act=renzheng&op=zhuanchang_paipin&curpage=1">拍品上传</a></li>
                <li><a href="index.php?act=renzheng&op=zhuanchang_paipin_ck&curpage=1">查看拍品</a></li>
            </ul>
        </li>
    </ul>
</menu>
<div class="app">
    <section class="floor">
        <div class="biaoti">
            <p class="w15">专场ID</p>
            <p class="w45">专场标题</p>
            <p class="w20">开始时间</p>
            <p class="w20">结束时间</p>
        </div>
        <ul class="table">
            <?php if (empty($output["list"])):?>
                <li>
                    <div class="info">暂无数据！！！</div>
                </li>
            <?php else:?>
                <?php foreach ($output["list"] as $val) : ?>
                    <li>
                        <div class="list">
                            <p class="w15"><?php echo $val["id"] ?></p>
                            <p class="w45"><?php echo $val["name"] ?></p>
                            <p class="w20"><?php echo date('Y-m-d:H:i', $val["start_time"]) ?></p>
                            <p class="w20"><?php echo date('Y-m-d:H:i', $val["end_time"]) ?></p>
                        </div>
                        <div class="info"><?php echo $val["special_describe"] ?></div>
                        <div class=" shenqing">
                            审核状态：<?php if ($val["sq_zt"] == 0) {
                                echo "待审核";
                            } elseif ($val["sq_zt"] == 1) {
                                echo "被驳回";
                            } else {
                                echo "审核通过";
                            } ?>
                        </div>
                    </li>
                <?php endforeach;?>
            <?php endif;?>
        </ul>
        <ul class="page">
            <li>首页</li>
            <li>上一页</li>
            <li>1/10</li>
            <li>下一页</li>
            <li>尾页</li>
        </ul>
    </section>
</div>
<input type="hidden" id="user_id" value='<?php echo $output["user"]["user_id"]?>'>
<script type="text/javascript">
    $(function(){

        $(".js-shen").click(function () {
            var current_id = $(this).attr('current_id');
            var user_id = $("#user_id").val();
            $.ajax({
                url: 'index.php?act=my&op=zc_shenqing&current_id=' + current_id + '&user_id=' + user_id,
                type: 'get',
                dataType: 'html',
                success: function (data) {
                    alert(data);
                }
            });
        });
        $('.js-guanli').on('click',function(){
            $('.js-guanli').removeClass('zhuan-currents');
            $(this).addClass('zhuan-currents');
            $(this).children('.list').toggle();
        })
    });
</script>
<!--引入导航菜单与底部-->
<?php $zh_nav="我的";?>
<?php include template('home/zsm/nav');?>